﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Mvc4.Others;
using DataAccess.Datatypes;
using BussinesLayer.Services;

namespace Mvc4.Controllers
{
    public class RSSFeedController : Controller
    {
        private SiteServices ss = new SiteServices();
        //
        // GET: /RSSFeed/

        public ActionResult _RSSFeed(int siteId)
        {
            FriendSite fSite = ss.GetFriendSite(siteId);
            ViewBag.friendSite = fSite.Name;
            return View(RssReader.GetRssFeed(fSite.Url, fSite.Keyword.ToLower()));
        }

    }
}
